package com.roads.project.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.roads.common.annotation.Excel;
import com.roads.common.core.domain.BaseEntity;

/**
 * 单位（公司）对象 pro_company
 * 
 * @author nhp
 * @date 2021-11-16
 */
public class ProCompany extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 单位ID */
    private Integer companyId;

    /** 单位名称 */
    @Excel(name = "单位名称")
    private String companyName;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Integer orderNum;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 法人代表 */
    @Excel(name = "法人代表")
    private String legalRepresentative;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 传真 */
    @Excel(name = "传真")
    private String fax;

    /** 电子邮件 */
    @Excel(name = "电子邮件")
    private String email;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public Integer getCompanyId() {
        return companyId;
    }
    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCompanyName() {
        return companyName;
    }
    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Integer getOrderNum() {
        return orderNum;
    }
    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddress() {
        return address;
    }
    public void setLegalRepresentative(String legalRepresentative) {
        this.legalRepresentative = legalRepresentative;
    }

    public String getLegalRepresentative() {
        return legalRepresentative;
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone() {
        return phone;
    }
    public void setFax(String fax) {
        this.fax = fax;
    }

    public String getFax() {
        return fax;
    }
    public void setEmail(String email) {
        this.email = email;
    }

    public String getEmail() {
        return email;
    }
    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("companyId", getCompanyId())
            .append("companyName", getCompanyName())
            .append("orderNum", getOrderNum())
            .append("address", getAddress())
            .append("legalRepresentative", getLegalRepresentative())
            .append("phone", getPhone())
            .append("fax", getFax())
            .append("email", getEmail())
            .append("remark", getRemark())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
